With the 'explode' attribute you can set a script file that is called when the grenade calls the explode event. You can use origin and world for your script.
explode="loader.loadScript('xyz.script');";